I have this code:
- Code: Select all
(<a href="privacy.html" onclick="popUpWin(this.href,'console3',610,210);return false;" target="popUpWin" title="View our privacy policy">Privacy Policy</a>)
To be honest, it is something that I scoured from the internet several months ago. It uses javascript to popup the url. As far as I am aware this is working fine in IE8, Safari and Firefox. I don't know about other browsers. But the validation result said:
Using both "href" and "onclick" attributes with an "a" tag may be problematic because of how it may work. Typically, the "onclick" event would be executed first, then the "href" would take effect, but miscellaneous issues may occur with different browsers and different user settings (such as whether scripting is on). If using both attributes, then perform testing on a variety of browsers and settings to make sure it works as intended.
From your description it should behave as I require. I don't know of any other way to show a popup window.

