Make link popup

topthisfact

Paragon
Joined
Dec 14, 2009
Messages
2,244
Reaction score
0
FP$
636
Hello,
I was wondering how do i make it by default that my forum when people click on any link posted on the forum or clickable links , its a popup & not a same page redirect.

I want it to be a popup
 
Hee,

There are several ways of creating a pop up, you can do it with a clickable text:

Code:
<a href="URL" onclick="window.open('URL', 'pop_up name', 'width=200,height=100,menubar=yes,toolbar=yes'); return false">Click me</a>

You can also have an image:
Code:
<a href="URL" onclick="window.open('URL', 'popup_name', 'width=200,height=100,menubar=yes,toolbar=yes'); return false"><img src="IMG URL" height="50" width="50" /></a>

You can also have a button:
Code:
<form action="_self">
 <input type="button" value="Click me!" onclick="window.open('URL', 'popup_name','width=200,height=100,menubar=yes,toolbar=yes'); return false" />
</form>

There are more attributes for the pop up, but these are the basic ones.

Cheers,
 
No i mean like
How to set the permission to default that
every link you click on the post is a popup instead of adding these code to making it popup.


Let say Forumpromotion, i put in www.abc.com , after posted when click its a popup

but when i do it on mines, its same page redirect.

know what i mean?
 
A more clean code would be:

Code:
<a href="URL" onclick="popup(this.href, 550, 320); return false;">
Where 550, 320 are the width and height.

Regards,
 
Back
Top Bottom