• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Simple Javascript Question

Hi all. I've got a page I'm working on and I've got a piece of javascript code I'd like to use, but I'm not sure how to implement it.

Here's an example of what I'd like to use: <a HREF="javascript😱penChildWindow('/testpage.htm','P','width=300,height=400');">

I link it to the document, but for some silly reason when I click on the link afterwords it still won't load. I'm wanting to have a small window popup when someone clicks on the link with info inside it. Am I doing something wrong? Or am I missing something?
 
you need to use window.open to open new window..

<a href="javascript:window.open ('testpage.htm', 'window_name', 'width=300', 'height=400'); return true;">click here</a>

more info... click
 
Would this work if I had it linked to a graphic? I want people to click on the graphic and have the window open up.

Would that work as well? Cause I tried it and it's still not working. I click, it quickly gives me the hour glass, then nothing.
 
<a href="#" onclick="window.open ('testpage.htm', 'window_name', 'width=300, height=400');"><img src="somepic.jpg"></a>
 
Back
Top