?
Solved

document.write

Posted on 2003-11-12
2
Medium Priority
?
258 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 200 total points
ID: 9733576
document.write('<link href="Style/div' + div + '.css" rel="stylesheet" type="text/css">')
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

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

This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
In this blog, we’ll look at how improvements to Percona XtraDB Cluster improved IST performance.
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…
Suggested Courses

765 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