PDA

View Full Version : Variable in external Javascript file



ZigE
03-17-2008, 04:03 AM
So I'm trying to define a variable outside of an external .js file. How would I do this?

<html>
<head>

$PAGE = popup1

<script type="text/javascript" src="/file.js">

.... var interstitialBox={
displayfiles: ['/$PAGE.php'],

</head>

webburu
08-11-2008, 08:50 PM
tell me more details what do you want to achieve?