-
Step 1
Use the location objects "href" property to reference the document in your script. Place the string "location.href=document.nameofyourURL.andsubpage.value" in your function, where "nameofyourURL.andsubpage" are exactly that the name of your URL and then put a period between the subpage heading with no spaces. This takes you to your web page when the VBScript performs the function.
-
Step 2
Populate your script with an alternative method if you do not know the "href" property of your URL. Use the established method "toString ()" to return the value of the property in place of the "href" reference in Step 1.
-
Step 3
Write a query in VBScript and include "location" as a variable. The query searches through your web pages for URLs and returns the names to you. Specify in the query if you want the "href" name or the method name returned.
-
Step 4
Assign one URL or many different URLs to go to when a button on your web page is pressed. Enter "location=document.yourform.yourlist.value" into your script. Assign a form and then enter URLs for your list. Include just one or many to display a list of possible URLs.











Comments
mizzshady said
on 9/24/2009 nope not easy at all that went over my head.. I'm so lost... And I'm going to need a website soon.. I cant seem to get an understanding for how it all works. Still trying to figure out how to tie in css with html... wow I will just keep on trying to understand it.