Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

document.write

Posted on 2003-11-12
2
Medium Priority
?
261 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

610 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