PDA

View Full Version : Can javascript be used in a vb template?


CamJM
06-26-2007, 05:27 AM
Title explains it all really.

Wanted to use a window.open()

Can't get it to work though. Any ideas?

<html>
<SCRIPT LANGUAGE="javascript">
<!--
window.open ('contact_pop.html','documentupload', config='height=300,
width=500, toolbar=no, menubar=no, scrollbars=no, resizable=no,
location=no, directories=no, status=no')
-->
</SCRIPT>
<body>
To upload a new document simply click on the link below.<br/>

<input type="button" value="Upload Document" onclick="window.open()">
</body>
</html>

Disregard the previous message. Turns out you can :up:

Princeton
06-26-2007, 02:47 PM
Before creating your own window popup script you should look at the vbulletin js files ... I believe one already exists.

sorry, I can't remember the file name.

-=Sniper=-
06-26-2007, 03:28 PM
I've just been looking through the files, its located in vbulletin_global.js

function openWindow(url, width, height, windowid)