News:

Join the Facebook Fan Page.

Main Menu

Javascript Popups

Started by Gobalopper, November 02, 2003, 05:18:03 PM

Previous topic - Next topic

Gobalopper

Here is a much better way of doing javascript popups:

<a href="popup.html" onclick="window.open(this.href, 'example', 'height=250, width=300, top=50, left=50, scrollbars=yes, titlebar=true'); return false;">link text</a>

You would use this instead of other ways like:

<a href="javascript:window.open('popup.html');">
or
<a href="#" onclick="window.open('popup.html');">

The first way allows people without javascript turned on to still have the window popup, plus you can see the url you will be going to in the status bar, and it also works in browsers that allow you to open links in new tabs.

[Unknown]

That is a lot better.... done in the cvs ;).

-[Unknown]

Advertisement: