Solved

document.write

Posted on 2003-11-12
2
254 Views
Last Modified: 2012-05-04
hi there...
i have htm file and on top frame i have asp page and i want to grab the paramenters from top frame and put it on the frame based on my paramenters my stylsheet will be display....

here is my stylesheet A or B -- depends on the user who logon i will get this value from top frame
<link href="Style/divA.css" rel="stylesheet" type="text/css">



function loadme(){
      alert(top.window.frames.banner.currrentDivision) //im getting the division id
               <link href="../../../Style/reAae11a.css" rel="stylesheet" type="text/css">
}

<form onload=loadme()>

</form>
0
Comment
Question by:khan2000
2 Comments
 
LVL 2

Author Comment

by:khan2000
ID: 9732928
function loadme(){
    alert(top.window.frames.banner.currrentDivision) //im getting the division id
              <link href="Style/divA.css" rel="stylesheet" type="text/css">
}
0
 
LVL 7

Accepted Solution

by:
nisarkhan earned 50 total points
ID: 9733576
document.write('<link href="Style/div' + div + '.css" rel="stylesheet" type="text/css">')
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question