Link to home
Start Free TrialLog in
Avatar of newbie_coder
newbie_coderFlag for Canada

asked on

Retrieve value without getElementsByTagName or Xpath

Hi Experts,

Writing a greasemonkey / iepro script. How can I get / retrieve the last param tag value ("/images/frontyard.jpg") without using getElementsByTagName or Xpath ?

Just need a simple way to rip out the line "/images/frontyard.jpg" into a string as Xpath doesn't work in IE and getElementsByTagName is kinda buggy as well in IE. Thanks.

Code:

      <applet name="panoviewer" code="panoapplet.jar" width="350" height="280" id=Applet1>
            <param name="alt" value=" ">
            <param name="auto" value="70">
            <param name="view" value="360">
            <param name="zoomangle" value="30">
            <param name="background" value="0, 0, 0">
            <param name="toolbarstyle" value="floating">
            <param name="toolbar" value="disabled">
            <param name="file" value="/images/frontyard.jpg">
      </applet>
Avatar of basicinstinct
basicinstinct
Flag of Australia image

something like:

document.getElementById('Applet1').lastChild.value;
ASKER CERTIFIED SOLUTION
Avatar of basicinstinct
basicinstinct
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial