can i use a webbot in this way?

C

Chris

Hi,

I need to include a file depending of the browser.
I tried this but it doesn't work:

<script language=javascript>
var a = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
if a="true" then
document.write('<!--webbot bot="Include" tag="BODY" u-include='+
'"indIE.htm"' + ' startspan -->')
else
document.write('<!--webbot bot="Include" tag="BODY" u-include='+
'"indNS.htm"' + ' startspan -->')
</script>

Any idea?
Thanks
chris
 
S

Steve Easton

No.

Include pages are design time includes. Which means they are added to the page that uses
them when you edit and save the include or the page.

To do what you want would require a server side include. ( SSI ) Written in .asp or .php

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer.
 
C

Chris

thanks

Steve Easton said:
No.

Include pages are design time includes. Which means they are added to the page that uses
them when you edit and save the include or the page.

To do what you want would require a server side include. ( SSI ) Written in .asp or .php

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
..............................with a computer.
 
Top