...

View Full Version : Link to window.open function (help)



svoltmer
01-03-2007, 11:06 PM
I am trying to open a document or window from

<a href="#" onclick="javascript: Open_Win();"><img src="images/Touching-God-Fast.jpg" alt="Touching God Fast" width="320" height="65" border="0"></a>

Where the function Open_Win() is:

function Open_Win()
{
window.open("http://www.crosst.org/Touching-God-Fast.html","Touching God Fast","scrollbars=yes, statusbar=yes, height=500, width=850");
}

Works great on a Mac but under IE in windows xp it states that there is an error on the page. What am I doing wrong? Thanks!

nikkiH
01-03-2007, 11:12 PM
<a href="#" onclick="Open_Win();"><img src="images/Touching-God-Fast.jpg" alt="Touching God Fast" width="320" height="65" border="0"></a>

function Open_Win()
{
window.open("http://www.crosst.org/Touching-God-Fast.html","Touching_God_Fast","scrollbars=yes, statusbar=yes, height=500, width=850");
}

No spaces in the name of the window, and no need for javascript: in onclick.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum