/    Sign up×
Community /Pin to ProfileBookmark

Openwindo. Problem

I am trying to put button on a window that i have opened using openwindow. the button when clicked starts a function i am just having problems passing a varibale below is what i have at the moment.

<script type=”text/javascript” src=”bits.js”></script>
<script type=”text/javascript”>

function openindex(image, text, aid, title)
{
OpenWindow=window.open(“”, “newwin”, “height=400, width=300,toolbar=no,scrollbars=”+scroll+”,menubar=no”);
OpenWindow.document.write(“<link href=”+’text.css’+” rel=”+’stylesheet’+” type=”+’text/css’+”>”)
OpenWindow.document.write(“<title>”)
OpenWindow.document.write( title )
OpenWindow.document.write(“</title>”)
OpenWindow.document.write(“<img src=”+image+”>”)
OpenWindow.document.write(“<p id=”+’ just ‘+”>”)
OpenWindow.document.write(“</p>”)
OpenWindow.document.write(text)
OpenWindow.document.write(“<input name=”+’Add’+” type=”+’button’+” value=”+’Add to route’+”onclick=”+’route(“aid”)’+”/>”)
OpenWindow.document.close()
self.name=”main”
}

</script>

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceMar 15.2006 — Double-posting is against the rules of this site:

http://www.webdeveloper.com/forum/showthread.php?t=99149
Copy linkTweet thisAlerts:
@in1337ened1Mar 15.2006 — It's window.open, not open.window.
Copy linkTweet thisAlerts:
@in1337ened1Mar 15.2006 — scratch that. didn't read enough code :p

Don't i feel like a sped?
×

Success!

Help @rupert85 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...