js中取得网页源代码

js中获得网页源代码??//alert(pos)? ????var???fileNameurl.substring(pos+1)???//从url中获得文件名??

js中获得网页源代码

    ??//alert(pos);? ??
  1. ??var???fileName=url.substring(pos+1);???//从url中获得文件名?? ??
  2. ??return???fileName;?? ??
  3. ??}?? ??
  4. ??? ??
  5. ??function???onDownloadDone(fileName)?? ??
  6. ??{?? ??
  7. ??alert(fileName);???? ??
  8. ??}???? ??
  9. ??</script>?? ??
  10. ??<input???type="button"???id="behaviorID"???style="behavior:url(#default#download)"??
  11. ??
  12. ??
  13. 主要都是用到了behavior:url??