/    Sign up×
Community /Pin to ProfileBookmark

Frames in script

Any suggestions on how to make this script go to the _main frame in the script? Thanks

<script type=”text/javascript”>

var domainroot=”www.lossreduction.com”

function Gsitesearch(curobj){
curobj.q.value=”site:”+domainroot+” “+curobj.qfront.value
}

</script>

<form action=”http://www.google.com/search” method=”get” onSubmit=”Gsitesearch(this)”>

<p><br />
<input name=”q” type=”hidden” />
<input name=”qfront” type=”text” style=”width: 180px” /> <input type=”submit” value=”Search” /></p>

</form></div>

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceMay 06.2006 — You mean to make the form submit to the _main frame?

Just add [b]target="_
main"[/b] to the FORM tag.
Copy linkTweet thisAlerts:
@gitzdauthorMay 06.2006 — thanks phpnovice! i guess that was a bit of a no-brainer, but it works so thanks!

david
Copy linkTweet thisAlerts:
@phpnoviceMay 06.2006 — You're welcome.

Cheers.
×

Success!

Help @gitzd 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.18,
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,
)...